home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / rpl000009.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  893 b   |  34 lines  |  [TEXT/ttxt]

  1. #this one assumes we are ignoring updates on tables in database foo, but doing
  2. #the ones in database bar
  3. source include/master-slave.inc;
  4. connection master;
  5. drop database if exists foo;
  6. create database foo;
  7. drop database if exists bar;
  8. create database bar;
  9. save_master_pos;
  10. connection slave;
  11. sync_with_master;
  12. drop table if exists foo.foo;
  13. create table foo.foo (n int);
  14. insert into foo.foo values(4);
  15. connection master;
  16. drop table if exists foo.foo;
  17. create table foo.foo (n int);
  18. insert into foo.foo values(5);
  19. drop table if exists bar.bar;
  20. create table bar.bar (m int);
  21. insert into bar.bar values(15);
  22. save_master_pos;
  23. connection slave;
  24. sync_with_master;
  25. select foo.foo.n,bar.bar.m from foo.foo,bar.bar;
  26. connection master;
  27. drop database if exists bar;
  28. drop database if exists foo;
  29. save_master_pos;
  30. connection slave;
  31. sync_with_master;
  32. drop database if exists bar;
  33. drop database if exists foo;
  34.